#pragma once

#include <QWidget>
#include <QKeyEvent>

class GraphicsMap : public QWidget
{
    Q_OBJECT

public:
    GraphicsMap(QWidget *parent = 0);

    ~GraphicsMap();

protected:
    virtual void keyPressEvent(QKeyEvent *e);

    void collectData(); // collect some necessary data like picture size, view size and so on.

private:
    class Private;
    Private *d;

};

